package com.giggle.demo.domain;

import com.giggle.mybatis.annotation.AutoGenegrateId;
import com.giggle.mybatis.annotation.ShardingTable;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@AutoGenegrateId(name = "id")
@ShardingTable(property = "id" , tableCount = 4 , algorithm = 2)
@Table(name = "user_start")
@Data
public class UserStartEo {

    @Id
    private Long id;

    private String name;

    private Integer age;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "create_by")
    private String createBy;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "update_by")
    private String updateBy;

    /**
     * 0-未删除，1-删除
     */
    @Column(name = "del_flag")
    private Integer delFlag;
}